package diaosidadui.test;

import java.util.Scanner;

public class EveryNumber {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个数:");
        int getNumber = sc.nextInt();
        StringBuilder str = new StringBuilder();
        int lo = str.append(getNumber).length();
        char[] ch= str.toString().toCharArray();
        for (int i = 0; i < ch.length; i++) {
            System.out.println("每个位是:"+ch[i]);
        }

    }


    //10的n次方
    public static long zhiShu(int n) {
        Scanner sc = new Scanner(System.in);
        int base = 10;
        int exponential = n;
        long result = 1;

        while (exponential > 0) {
            result *= base;
            exponential--;
        }
        return result;
    }


}
